package com.wt.单例模式;

/**
 * 饿汉式
 */
public class Single2 {
    private static Single2 single;
    private Single2(){}
    public static Single2 getSingle(){
        if(single == null){
            single = new Single2();
        }
        return single;
    }
}
